﻿import access from "@/access";
import component from "@/locales/bn-BD/component";

/**
 * @name umi 的路由配置
 * @description 只支持 path,component,routes,redirect,wrappers,name,icon 的配置
 * @param path  path 只支持两种占位符配置，第一种是动态参数 :id 的形式，第二种是 * 通配符，通配符只能出现路由字符串的最后。
 * @param component 配置 location 和 path 匹配后用于渲染的 React 组件路径。可以是绝对路径，也可以是相对路径，如果是相对路径，会从 src/pages 开始找起。
 * @param routes 配置子路由，通常在需要为多个路径增加 layout 组件时使用。
 * @param redirect 配置路由跳转
 * @param wrappers 配置路由组件的包装组件，通过包装组件可以为当前的路由组件组合进更多的功能。 比如，可以用于路由级别的权限校验
 * @param name 配置路由的标题，默认读 取国际化文件 menu.ts 中 menu.xxxx 的值，如配置 name 为 login，则读取 menu.ts 中 menu.login 的取值作为标题
 * @param icon 配置路由的图标，取值参考 https://ant.design/components/icon-cn， 注意去除风格后缀和大小写，如想要配置图标为 <StepBackwardOutlined /> 则取值应为 stepBackward 或 StepBackward，如想要配置图标为 <UserOutlined /> 则取值应为 user 或者 User
 * @doc https://umijs.org/docs/guides/routes
 */
export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './User/Login',
      },
    ],
  },
  {
    path: '/welcome',
    name: 'welcome',
    icon: 'smile',
    component: './Welcome',
  },
  // {
  //   path: '/admin',
  //   name: 'admin',
  //   icon: 'crown',
  //   access: 'canAdmin',
  //   routes: [
  //     {
  //       path: '/admin',
  //       redirect: '/admin/sub-page',
  //     },
  //     {
  //       path: '/admin/sub-page',
  //       name: 'sub-page',
  //       component: './Admin',
  //     },
  //   ],
  // },
  // {
  //   name: 'list.table-list',
  //   icon: 'table',
  //   path: '/list',
  //   component: './TableList',
  // },
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    path: '*',
    layout: false,
    component: './404',
  },
   // 自定义菜单开始----------------------------基础数据-----------------------------------
 {
  path:'/basis',
  name:'basis',
  routes:[
    {
      path:'/basis',
      redirect:'/basis/area',
    },
    // {
    //   path:'/basis/industry',
    //   name:'industry',
    //   component:'./basis/industry',
    // },
    {
      path:'/basis/area',
      name:'area',
      component:'./basis/area',
      // access:'canAdmin',
    },
    {
      path:'/basis/currency',
      name:'currency',
      component:'./basis/currency',
      // access:'canAdmin',
    },
    {
      path:'/basis/warehouse',
      name:'warehouse',
      component:'./basis/warehouse',
    },
    {
      path:'/basis/warehouse_pos',
      name:'warehouse_pos',
      component:'./basis/warehouse_pos',
    },
    {
      path:'/basis/inouttype',
      name:'inouttype',
      component:'./basis/inoutType',
    },
    {
      path:'/basis/saletype',
      name:'saletype',
      component:'./basis/saleType',
    },
    {
      path:'/basis/purchasetype',
      name:'purchasetype',
      component:'./basis/purchaseType',
    },
    {
      path:'/basis/material',
      name:'material',
      // access:'routeFilter',
      routes:[
        {
          path:'/basis/material',
          // access:'routeFilter',
          redirect:'/basis/material/unit',
        },
        {
          path:'/basis/material/unit',
          name:'unit',
          // access:'routeFilter',
          component:'./basis/unit',
        },
        {
          path:'/basis/material/materialcategory',
          name:'materialcategory',
          // access:'routeFilter',
          component:'./basis/materialCategory',
        },
        {
          path:'/basis/material/material',
          name:'basismaterial',
          // access:'routeFilter',
          component:'./basis/material',
        },
        // {
        //   path:'/basis/material/materialgroupcategory',
        //   name:'materialgroupcategory',
        //   // access:'routeFilter',
        //   component:'./basis/materialGroupCategory',
        // },
        // {
        //   path:'/basis/material/materialgroup',
        //   name:'materialgroup',
        //   // access:'routeFilter',
        //   component:'./basis/materialGroup',
        // },
        {
          path:'/basis/material/materialprintlabel',
          name:'materialprintlabel',
          component:'./basis/materialPrintLabel'
        },
        {
          path:'/basis/material/materialcodes',
          name:'materialcodes',
          component:'./basis/materialCodes'
        },
      ],
    },
   {
    path:'/basis/vcmanage',
    name:'vcmanage',
    // access:'routeFilter',
    routes:[
      {
         path:'/basis/vcmanage',
        //  access:'routeFilter',
         redirect:'/basis/vcmanage/customercategory',
      },
      {
        path:'/basis/vcmanage/customercategory',
        name:'customercategory',
        // access:'routeFilter',
        component:'./basis/customerCategory',
      },
      {
        path:'/basis/vcmanage/customer',
        name:'customer',
        // access:'routeFilter',
        component:'./basis/customer',
      },
      // {
      //   path:'/basis/vcmanage/materialcustomer',
      //   name:'materialcustomer',
      //   component:'./basis/materialCustomer',
      // },
      {
        path:'/basis/vcmanage/vendorcategory',
        name:'vendorcategory',
        // access:'routeFilter',
        component:'./basis/vendorCategory',
      },
      {
        path:'/basis/vcmanage/vendor',
        name:'vendor',
        // access:'routeFilter',
        component:'./basis/vendor',
      },
      // {
      //   path:'/basis/vcmanage/materialvendor',
      //   name:'materialvendor',
      //   component:'./basis/materialVendor',
      // },
      {
        path:'/basis/vcmanage/vcdocument',
        name:'vcdocument',
        // access:'routeFilter',
        component:'./basis/vcdocument',
      },
    ],
   },
   {
    path:'/basis/produce',
    name:'produce',
    routes:[
      {
        path:'/basis/produce',
        redirect:'/basis/produce/workcenter',
      },
      {
        path:'/basis/produce/workcenter',
        name:'workcenter',
        component:'./basis/produce/workcenter',
      },
      {
        path:'/basis/produce/workgroup',
        name:'workgroup',
        component:'./basis/produce/workgroup',
      },
      {
        path:'/basis/produce/pricerate',
        name:'pricerate',
        component:'./basis/produce/pricerate',
      },
      {
        path:'/basis/produce/classes',
        name:'classes',
        component:'./basis/produce/classes',
      },
    ],
   },
  //  {
  //   path:'/basis/sample',
  //   name:'sample',
  //   routes:[
  //     {
  //       path:'/basis/sample',
  //       redirct:'/basis/sample/samplecategory'
  //     },
  //     {
  //       path:'/basis/sample/samplecategory',
  //       name:'samplecategory',
  //       component:'./basis/sampleCategory',
  //     },
  //     {
  //       path:'/basis/sample/sampleprogress',
  //       name:'sampleprogress',
  //       component:'./basis/sampleProgress',
  //     },
  //   ],
  //  },
  // {
  //     path:'/basis/userdefine',
  //     name:'userdefine',
  //     routes:[
  //       {
  //         path:'/basis/userdefine',
  //         redirect:'/basis/userdefine/uitem',
  //       },
  //       {
  //         path:'/basis/userdefine/uitem',
  //         name:'uitem',
  //         component:'./basis/userdefine/uitem',
  //       },        
  //       // {
  //       //   path:'/basis/userdefine/ugroup',
  //       //   name:'ugroup',
  //       //   component:'./basis/userdefine/ugroup',
  //       // },
  //     ],
  //   },
    // {
    //   path:'/basis/regist',
    //   name:'regist',
    //   routes:[
    //     {
    //       path:'/basis/regist',
    //       redirect:'/basis/regist/invite',
    //     },
    //     {
    //       path:'/basis/regist/invite',
    //       component:'./basis/regist/invite',
    //       name:'invite',
    //     },
    //     {
    //       path:'/basis/regist/doregist',
    //       name:'doregist',
    //       component:'./basis/regist/doRegist',
    //     },
    //     {
    //       path:'/basis/regist/about',
    //       name:'about',
    //       component:'./basis/regist/about',
    //     }
    //   ],
    // },
  ],
},
// 技术管理
{
  path:'/technology',
  name:'technology',
  routes:[
    {
      path:'/technology',
      redirect:'/technology/bom_standard',
    },
    {
      path:'/technology/bom_standard',
      name:'bom_standard',
      component:'./technology/bom_standard',
    },
    // {
    //   path:'/technology/bom_order',
    //   name:'bom_order',
    //   component:'./technology/bom_order',
    // },
    {
      path:'/technology/craft_param',
      name:'craft_param',
      component:'./technology/craft_param',
    },
    {
      path:'/technology/craft_card',
      name:'craft_card',
      component:'./technology/craft_card',
    },
    {
      path:'/technology/craft_route',
      name:'craft_route',
      component:'./technology/craft_route',
    },{
      path:'/technology/material2craft',
      name:'material2craft',
      component:'./technology/material2craft',
    }
  ],
},
// {
//   path:'/schedule',
//   name:'schedule',
//   routes:[
//     {
//       path:'/schedule',
//       redirect:'/schedule/caculate',
//     },
//     {
//       path:'/schedule/caculate',
//       name:'caculate',
//       component:'./schedule/caculate',
//     },
//   ],
// },
// 销售业务--------------------------------------------------------------
{
  path:'/sale',
  name:'sale',
  routes:[
    {
      path:'/sale',
      redirect:'/sale/order2',
    },
    // {
    //   path:'/sale/sample',
    //   name:'salesample',
    //   component:'./sale/sample',
    // },
    // {
    //   path:'/sale/quotation',
    //   name:'quotation',
    //   component:'./sale/quotation',
    // },
    
    // {
    //   path:'/sale/order',
    //   name:'saleorder',
    //   component:'./sale/order',
    // },
    // {
    //   path:'/sale/deliver',
    //   name:'deliver',
    //   component:'./sale/deliver',
    // },
    {
      path:'/sale/order2',
      name:'saleorder2',
      component:'./sale/order2',
    },
    {
      path:'/sale/deliver2',
      name:'deliver2',
      component:'./sale/deliver2',
    },
    {
      path:'/sale/deliverout',
      name:'deliverout',
      component:'./sale/deliverOut',
    },
    // {
    //   path:'/sale/priceschedule',
    //   name:'salepriceschedule',
    //   component:'./sale/priceSchedule',
    // },
    {
      path:'/sale/report',
      name:'salereport',
      routes:[
        {
          path:'/sale/report',
          redirect:'/sale/report/deliverprogress',
        },
        {
          path:'/sale/report/deliverprogress',
          name:'deliverprogress',
          component:'./sale/report/deliverProgress',
        },
        {
          path:'/sale/report/orderprogress',
          name:'saleorderprogress',
          component:'./sale/report/orderProgress',
        },
        {
          path:'/sale/report/boxingdetail',
          name:'boxingdetail',
          component:'./sale/report/boxingDetail',
        },
         {
          path:'/sale/report/deliverdetail',
          name:'deliverdetail',
          component:'./sale/report/deliverDetail',
        },
         {
          path:'/sale/report/delivercount',
          name:'delivercount',
          component:'./sale/report/deliverCount',
        },
      ],
    },
  ],
},

 // 采购业务----------------------------------------------------------
 {
  path:'/purchase',
  name:'purchase',
  routes:[
    {
    path:'/purchase',
    redirect:'/purchase/order',
    },
    // {
    //   path:'/purchase/requirepool',
    //   name:'requirepool',
    //   component:'./purchase/requirepool',
    // },
    // {
    //   path:'/purchase/alloctype',
    //   name:'alloctype',
    //   component:'./purchase/allocType',
    // },
    // {
    //   path:'/purchase/sample',
    //   name:'purchasesample',
    //   component:'./purchase/sample',
    // },
    // {
    //   path:'/purchase/inquiryprice',
    //   name:'inquiryprice',
    //   component:'./purchase/inquiryPrice',
    // },
    {
      path:'/purchase/allocorder',
      name:'allocorder',
      component:'./purchase/allocOrder',
    },
    
    {
      path:'/purchase/order',
      name:'purchaseorder',
      component:'./purchase/order',
    },
    {
      path:'/purchase/commission',
      name:'commission',
      component:'./purchase/commission',
    },
    {
      path:'/purchase/priceschedule',
      name:'purchasepriceschedule',
      component:'./purchase/priceSchedule',
    },
    // {
    //   path:'/purchase/purchasecar',
    //   name:'purchasecar',
    //   component:'./purchase/purchaseCar',
    // },
    {
      path:'/purchase/report',
      name:'purchasereport',
      routes:[
        {
          path:'/purchase/report',
          redirect:'/purchase/report/commissionprogress',
        },
        {
          path:'/purchase/report/commissionprogress',
          name:'commissionprogress',
          component:'./purchase/report/commissionProgress',
        },
        {
          path:'/purchase/report/orderprogress',
          name:'purchaseorderprogress',
          component:'./purchase/report/orderProgress',
        },
        {
          path:'/purchase/report/currentstock',
          name:'currentstock',
          component:'./stock/report/currentStock',
        },
        {
          path:'/purchase/report/stockindetail',
          name:'stockindetail',
          component:'./purchase/report/stockInDetail',
        },
         {
          path:'/purchase/report/stockincount',
          name:'stockincount',
          component:'./purchase/report/stockInCount',
        },
        {
           path:'/purchase/report/partpurpose',
           name:'partpurpose',
           component:'./purchase/report/partPurpose',
        },
      ],
    },
 ],
},

// 生产管理
{
  path:'/produce',
  name:'produce',
  routes:[
    {
      path:'/produce',
      redirect:'/produce/produceorder',
    },
    
    // {
    //   path:'/produce/check',
    //   name:'check',
    //   component:'./produce/check',
    // },
    
    {
      path:'/produce/produceorder',
      name:'produceorder',
      component:'./produce/produceorder',
    },
    // {
    //   path:'/produce/dispatch',
    //   name:'dispatch',
    //   component:'./produce/dispatch',
    // },
    {
      path:'/produce/reporting',
      name:'reporting',
      component:'./produce/reporting',
    },
    {
      path:'/produce/boxingalloc',
      name:'boxingalloc',
      component:'./produce/boxingAlloc',
    },
    {
      path:'/produce/boxing',
      name:'boxing',
      component:'./produce/boxing',
    },
    
    // {
    //   path:'/produce/wagesajust',
    //   name:'wagesadjust',
    //   component:'./produce/wagesadjust',
    // },
    // {
    //   path:'/produce/wages',
    //   name:'wages',
    //   component:'./produce/wages',
    // },
    {
      path:'/produce/report',
      name:'producereport',
      routes:[
        {
          path:'/produce/report',
          redirect:'/produce/report/produceprogress',
        },
        {
          path:'/produce/report/produceprogress',
          name:'produceprogress',
          component:'./produce/report/produceProgress',
        },
        {
          path:'/produce/report/reportingdetail',
          name:'reportingdetail',
          component:'./produce/report/reportingDetail',
        },
        {
          path:'/produce/report/reportingcount',
          name:'reportingcount',
          component:'./produce/report/reportingCount',
        },
        {
          path:'/produce/report/wagedetail',
          name:'wagedetail',
          component:'./produce/report/wageDetail',
        },
        {
          path:'/produce/report/wagecount',
          name:'wagecount',
          component:'./produce/report/wageCount',
        },
      ],
    }
   
  ],
},
// 库存业务-----------------------------------------------------------
{
  path:'/stock',
  name:'stock',
  routes:[
    {
      path:'/stock',
      redirect:'/stock/stockin',
    },
    {
      path:'/stock/stockin',
      name:'stockin',
      routes:[
        {
          path:'/stock/stockin',
          redirect:'/stock/stockIn/in2purchase',
        },
        {
          path:'/stock/stockin/in2purchase',
          name:'in2purchase',
          component:'./stock/stockIn/in2purchase',
        },
         {
          path:'/stock/stockin/commissionreporting',
          name:'commissionreporting',
          component:'./stock/stockIn/commissionReporting',
        },
        {
          path:'/stock/stockin/in2other',
          name:'in2other',
          component:'./stock/stockIn/in2other',
        },

      ],
    },
    {
      path:'/stock/stockout',
      name:'stockout',
      routes:[
        {
          path:'/stock/stockout',
          redirect:'/stock/stockOut/out2produce',
        },
         {
             path:'/stock/stockout/prepare',
             name:'prepare',
             component:'./stock/prepare',
         },
         {
            path:'/stock/stockout/predeliver',
            name:'predeliver',
            component:'./stock/predeliver',
          },
          {
             path:'/stock/stockout/precommission',
             name:'precommission',
             component:'./stock/precommission',
           },
           {
                path:'/stock/stockout/out2other',
                name:'out2other',
                component:'./stock/stockOut/out2other',
            },

      ],
    },
   
    {
      path:'/stock/stockadjust',
      name:'stockadjust',
      component:'./stock/stockAdjust',
    },
    {
      path:'/stock/stocktaking',
      name:'stocktaking',
      component:'./stock/stockTaking',
    },
    {
      path:'/stock/report',
      name:'stockreport',
      routes:[
        {
          path:'/stock/report',
          redirect:'/stock/report/currentstock',
        },
        {
          path:'/stock/report/currentstock',
          name:'currentstock',
          component:'./stock/report/currentStock',
        },
        {
          path:'/stock/report/stockin',
          name:'reportstockin',
          component:'./stock/report/stockIn',
        },
         {
          path:'/stock/report/stockout',
          name:'reportstockout',
          component:'./stock/report/stockOut',
        },
        {
          path:'/stock/report/in2commission',
          name:'in2commission',
          component:'./stock/stockIn/in2commission',
        },
        {
          path:'/stock/report/in2produce',
          name:'in2produce',
          component:'./stock/stockIn/in2produce',
        },
       
        // {
        //   path:'/stock/report/stockpilot',
        //   name:'reportstockpilot',
        //   component:'./stock/report/stockPilot',
        // },
        {
          path:'/stock/report/out2produce',
          name:'out2produce',
          component:'./stock/stockOut/out2produce',
        },
        {
          path:'/stock/report/out2commission',
          name:'out2commission',
          component:'./stock/stockOut/out2commission',
        },
        {
          path:'/stock/report/out2sale',
          name:'out2sale',
          component:'./stock/stockOut/out2sale',
        },
      ],
    },
  ], 
},
// 设备管理------------------------------------------------------------------------------------------------------
// {
//   name:'equipment',
//   path:'/equipment',
//   routes:[
//     {
//       path:'/equipment',
//       redirect:'/equipment/welcome',
//     },
//     {
//         path:'/equipment/welcome',
//         name:'welcome',
//         component:'./equipment/welcome',
//     },
//     {
//       path:'/equipment/basis',
//       name:'basis',
//       routes:[
//         {
//         path:'/equipment/basis',
//         redirect:'/equipment/basis/degree',
//       },
//       { 
//       path:'/equipment/basis/degree',
//       name:'degree',
//       component:'./equipment/basis/degree',
//     },
//     {
//       path:'/equipment/basis/position',
//       name:'position',
//       component:'./equipment/basis/position',
//     },
//     {  
//       path:'/equipment/basis/deviceCategory',
//       name:'devicecategory',
//       component:'./equipment/basis/deviceCategory',
//     },
//     {
//       path:'/equipment/basis/faultcode',
//       name:'faultcode',
//       component:'./equipment/basis/faultcode'
//     },
//     {
//       path:'/equipment/basis/inoutCategory',
//       name:'inoutcategory',
//       component:'./equipment/basis/inoutCategory',
//     },
   
//     {
//       path:'/equipment/basis/maintenancecategory',
//       name:'maintenancecategory',
//       component:'./equipment/basis/maintenanceCategory',
//     },
//     {
//       path:'/equipment/basis/maintenanceitem',
//       name:'maintenanceitem',
//       component:'./equipment/basis/maintenanceItem',
//     },
//     // {
//     //   path:'/equipment/basis/maintenancebom',
//     //   name:'maintenancebom',
//     //   component:'./equipment/basis/maintenanceBom'
//     // },
//     // {
//     //   path:'/equipment/basis/managecategory',
//     //   name:'managecategory',
//     //   component:'./equipment/basis/manageCategory',
//     // },
    
//     {
//       path:'/equipment/basis/spotcheckitem',
//       name:'spotcheckitem',
//       component:'./equipment/basis/spotCheckItem'
//     },
//     {
//       path:'/equipment/basis/deviceaccount',
//       name:'deviceaccount',
//       component:'./equipment/basis/deviceAccount',
//     },
//     ]
//     },
//     {
//       path:'/equipment/fixture',
//       name:'fixture',
//       routes:[
//         {
//           path:'/equipment/fixture',
//           redirect:'/equipment/fixture/apply',
//         },
//         {
//           path:'/equipment/fixture/apply',
//           name:'apply',
//           component:'./equipment/fixture/apply',
//         },
//         {
//           path:'/equipment/fixture/adjustapply',
//           name:'adjustapply',
//           component:'./equipment/fixture/adjustApply',
//         },
//         {
//           path:'/equipment/fixture/check',
//           name:'check',
//           component:'./equipment/fixture/check',
//         }
//       ],
//     },
//     {
//       path:'/equipment/maintenance',
//       name:'maintenance',
//       routes:[
//         {
//           path:'/equipment/maintenance',
//           reirect:'/equipment/maintenance/schedule'
//         },
//         {
//           path:'/equipment/maintenance/schedule',
//           name:'schedule',
//           component:'./equipment/maintenance/schedule',
//         },
//         {
//           path:'/equipment/maintenance/allocate',
//           name:'allocate',
//           component:'./equipment/maintenance/allocate'
//         },
//         {
//           path:'/equipment/maintenance/doing',
//           name:'doing',
//           component:'./equipment/maintenance/doing',
//         },
//         // {
//         //   path:'/equipment/maintenance/review',
//         //   name:'review',
//         //   component:'./equipment/maintenance/review',
//         // }
//       ]
//     },
//     {
//       path:'/equipment/repair',
//       name:'repair',
//       routes:[
//         {
//           path:'/equipment/repair',
//           reirect:'/equipment/repair/apply'
//         },
//         {
//           path:'/equipment/repair/apply',
//           name:'apply',
//           component:'./equipment/repair/apply',
//         },
//         {
//           path:'/equipment/repair/allocate',
//           name:'allocate',
//           component:'./equipment/repair/allocate'
//         },
//         {
//           path:'/equipment/repair/doing',
//           name:'doing',
//           component:'./equipment/repair/doing',
//         },
//         // {
//         //   path:'/equipment/repair/review',
//         //   name:'review',
//         //   component:'./equipment/repair/review',
//         // }
//       ]
//     },
//     {
//       path:'/equipment/manage',
//       name:'manage',
//       routes:[{
//         path:'/equipment/manage',
//         redirect:'/equipment/manage/purchaseapply',
//       },
//     {
//       path:'/equipment/manage/purchaseapply',
//       name:'purchaseapply',
//       component:'./equipment/manage/purchaseApply',
//     },
//     {
//       path:'/equipment/manage/purchaseorder',
//       name:'purchaseorder',
//       component:'./equipment/manage/purchaseOrder',
//     },
//     {
//       path:'/equipment/manage/scrapapply',
//       name:'scrapapply',
//       component:'./equipment/manage/scrapApply',
//     },
//     {
//       path:'/equipment/manage/scrapdoing',
//       name:'scrapdoing',
//       component:'./equipment/manage/scrapDoing',
//     },
//     {
//       path:'/equipment/manage/spotcheck',
//       name:'spotcheck',
//       component:'./equipment/manage/spotCheck',
//     },
    
//   {
//     path:'/equipment/manage/transfer',
//     name:'transfer',
//     component:'./equipment/manage/transfer',
//   },
//   {
//     path:'/equipment/manage/specialdevice',
//     name:'specialdevice',
//     component:'./equipment/manage/specialDevice',
//   },
//   {
//     path:'/equipment/manage/resume',
//     name:'resume',
//     component:'./equipment/manage/resume',
//   },
//   ]
//     },
//     {
//       path:'/equipment/ware',
//       name:'ware',
//       routes:[{
//         path:'/equipment/ware',
//         redirect:'/equipment/ware/borrow',
//       },
//     {
//       path:'/equipment/ware/borrow',
//       name:'borrow',
//       component:'./equipment/ware/borrow',
//     },
//     {
//       path:'/equipment/ware/return',
//       name:'return',
//       component:'./equipment/ware/return',
//     }, {
//       path:'/equipment/ware/warein',
//       name:'warein',
//       component:'./equipment/ware/warein',
//     }, {
//       path:'/equipment/ware/wareout',
//       name:'wareout',
//       component:'./equipment/ware/wareout',
//     }, {
//       path:'/equipment/ware/stocktaking',
//       name:'stocktaking',
//       component:'./equipment/ware/stocktaking',
//     },  
//     ]
//     }
//   ],                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
// },
// 系统设置-------------------------------------------------------------------------------------------------------
{
  path:'/setting',
  name:'setting',
  routes:[
         {
          path:'/setting',
          redirect:'/setting/params',
         },
         {
          path:'/setting/params',
          name:'params',
          component:'./setting/params',
         },
         {
          path:'/setting/organization',
          name:'organization',
          component:'./setting/organization',
         },
          {
          path:'/setting/job',
          name:'job',
          component:'./setting/job',
         },
         {
          path:'/setting/user',
          name:'user',
          component:'./setting/user',
         },
         {
          path:'/setting/role',
          name:'role',
          component:'./setting/role',
         },
         {
          path:'/setting/grant',
          name:'grant',
          component:'./setting/grant',
         },
     ],
}
];
